let globalEmitCb = null;

let _option = {
  tintColor: "#f1e804", // 主题色
  tintTextColor: "#000", // 文字主题色
  logoImg: "http://xbgroup-1251025085.cosgz.myqcloud.com/cybertron/users/public/media/giz_ioe_1535366717292.png",
  logoText: "机智云",
  enableWxLogin: true,// 是否开启微信登录
  enableGizLoginByMobile: true, // 是否开启手机号登录
  enableGizLoginByPwd: true, // 是否开启密码登录
  mobileLoginTitle: "登录机智云",
  pwdLoginTitle: "密码登录",
  appKey: "927bb7757be0465d87bc2dd05adbc02e"
}

module.exports = {
  addTokenListenr(emitCb) {
    globalEmitCb = emitCb;
    console.log('globalEmitCb', globalEmitCb);
  },
  emitCb: (data) => {
    console.log('globalEmitCb===', globalEmitCb);
    globalEmitCb(data);
  },

  setOption: function (option) {
    _option = { ..._option, ...option }
  },
  getOption: function () {
    return _option
  }
};
